import request from '@/utils/request'

export const hotelAPI = {
  list: (page = 1, size = 10, search = '') => request.get('/po/hotels', { params: { page, size, search } }),
  detail: (id) => request.get(`/po/hotels/${id}`),
  create: (data) => request.post('/po/hotels', data),
  update: (data) => request.put('/po/hotels', data),
  remove: (id) => request.delete(`/po/hotels/${id}`)
}


